package com.hoperun.dao;

import java.util.List;

import com.hoperun.bean.AdminOrganizationsManager;
import com.hoperun.framework.query.Criteria;

public interface AdminOrganizationsManagerDAO
{
    /**
	 * 查询全部数据
	 * @return List<adminOrganizationsManager>
	 * @throws Exception
	 */
	public List<AdminOrganizationsManager> query()throws Exception;
	
	/**
	 * 根据主键查询
	 * @return adminOrganizationsManager
	 * @throws Exception
	 */
	public AdminOrganizationsManager queryById(Long id)throws Exception;
	
	/**
	 * 插入单个数据
	 * @param adminOrganizationsManager
	 * @return int
	 * @throws Exception
	 */
	public int insert(AdminOrganizationsManager adminOrganizationsManager)throws Exception;
	
	/**
	 * 插入批量数据
	 * @param adminOrganizationsManagers
	 * @return 
	 * @throws Exception
	 */
	public void insertBatch(List<AdminOrganizationsManager> adminOrganizationsManagers)throws Exception;
	
	/**
	 * 更新单个数据
	 * @param adminOrganizationsManager
	 * @return int
	 * @throws Exception
	 */
	public int update(AdminOrganizationsManager adminOrganizationsManager)throws Exception;
	
	/**
	 * 更新批量数据
	 * @param adminOrganizationsManagers
	 * @return 
	 * @throws Exception
	 */
	public void updateBatch(List<AdminOrganizationsManager> adminOrganizationsManagers)throws Exception;
	
	/**
	 * 根据主键删除单个数据
	 * @param id
	 * @throws Exception
	 */
	public void delete(AdminOrganizationsManager adminOrganizationsManager)throws Exception;
	
	/**
	 * 根据主键删除批量数据
	 * @param id
	 * @throws Exception
	 */
	public void deleteBatch(List<Long> ids)throws Exception;
	
	/**
	 * 按条件查询记录
	 * @param criteria
	 * @throws Exception
	 */
	public List<AdminOrganizationsManager> queryByCondition(Criteria criteria)throws Exception;
	
	/**
	 * 按条件查询记录条数
	 * @param criteria
	 * @throws Exception
	 */
	public int queryCountByCondition(Criteria criteria)throws Exception;
    /**
     * 按条件查询记录记录
	 * @param criteria
	 * @throws Exception
	 */
	public List<AdminOrganizationsManager> queryBySpecificCondition(Criteria criteria)throws Exception;
    
    /**
	 * 按条件查询记录条数
	 * @param criteria
	 * @throws Exception
	 */
	public int queryCountBySpecificCondition(Criteria criteria)throws Exception;
}
